package kr.co.handysoft.project.smartPolice.composite.detail;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.wb.swt.SWTResourceManager;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeColumn;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Button;

public class DetailStatusComposite extends Composite {

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public DetailStatusComposite(Composite parent, int style) {
		super(parent, style);
		setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
		setLayout(new FormLayout());
		
		Composite composite = new Composite(this, SWT.NONE);
		FormData fd_composite = new FormData();
		fd_composite.height = 35;
		fd_composite.right = new FormAttachment(100);
		fd_composite.top = new FormAttachment(0);
		fd_composite.left = new FormAttachment(0);
		composite.setLayoutData(fd_composite);
		
		CTabFolder tabFolder = new CTabFolder(this, SWT.BORDER);
		tabFolder.setTabHeight(23);
		FormData fd_tabFolder = new FormData();
		fd_tabFolder.left = new FormAttachment(0, 3);
		fd_tabFolder.bottom = new FormAttachment(100, -3);
		fd_tabFolder.top = new FormAttachment(composite, 3);
		
		Button btnNewButton = new Button(composite, SWT.NONE);
		btnNewButton.setImage(SWTResourceManager.getImage(DetailStatusComposite.class, "/com/famfamfam/slik/icons/arrow_rotate_clockwise.png"));
		btnNewButton.setBounds(5, 5, 155, 25);
		btnNewButton.setText("\uC2DC\uC2A4\uD15C \uC815\uBCF4 \uC7AC\uC218\uC2E0");
		fd_tabFolder.right = new FormAttachment(100, -3);
		tabFolder.setLayoutData(fd_tabFolder);
		tabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
		
		CTabItem tbtmNewItem = new CTabItem(tabFolder, SWT.NONE);
		tbtmNewItem.setImage(SWTResourceManager.getImage(DetailStatusComposite.class, "/com/famfamfam/slik/icons/database.png"));
		tbtmNewItem.setText("\uC218\uC2E0 \uB370\uC774\uD130 \uC815\uBCF4   ");
		
		DetailStatusReceiveDataInformationComposite composite_1 = new DetailStatusReceiveDataInformationComposite(tabFolder, SWT.NONE);
		tbtmNewItem.setControl(composite_1);
		
		CTabItem tbtmNewItem_1 = new CTabItem(tabFolder, SWT.NONE);
		tbtmNewItem_1.setImage(SWTResourceManager.getImage(DetailStatusComposite.class, "/com/famfamfam/slik/icons/server_chart.png"));
		tbtmNewItem_1.setText("\uC2DC\uC2A4\uD15C \uC815\uBCF4   ");
		
		DetailStatusSystemInformationComposite composite_2 = new DetailStatusSystemInformationComposite(tabFolder, SWT.NONE);
		tbtmNewItem_1.setControl(composite_2);
		composite_2.setLayout(new FormLayout());
		
		CTabItem tbtmNewItem_2 = new CTabItem(tabFolder, SWT.NONE);
		tbtmNewItem_2.setImage(SWTResourceManager.getImage(DetailStatusComposite.class, "/com/famfamfam/slik/icons/folder.png"));
		tbtmNewItem_2.setText("\uB514\uB809\uD130\uB9AC \uC815\uBCF4   ");
		
		DetailStatusDirectoryInformationComposite composite_3 = new DetailStatusDirectoryInformationComposite(tabFolder, SWT.NONE);
		tbtmNewItem_2.setControl(composite_3);

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
